home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / goobers.swf / scripts / DefineButton2_35 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2007-03-28  |  808 b   |  28 lines

  1. on(press){
  2.    _parent.num_lives = 5;
  3.    _parent.current_round = 1;
  4.    _parent.current_level = 1;
  5.    _parent.score = 0;
  6.    _parent.create_new_string(_parent.current_level,_parent.current_round,_parent.xctr,_parent.yctr,_parent.space_x,_parent.space_y,_parent.num_ships_x,_parent.num_ships_y);
  7.    _parent.player.status = "play";
  8.    this.gotoAndStop(1);
  9.    var j = 1;
  10.    while(5 >= j)
  11.    {
  12.       _root["life" + j]._visible = true;
  13.       j++;
  14.    }
  15.    var j = 0;
  16.    while(j < _parent.num_ships_x * _parent.num_ships_y)
  17.    {
  18.       _parent.player.enemies_left[j] = j;
  19.       j++;
  20.    }
  21.    _parent.boss.status = "dead";
  22.    _parent.boss._visible = false;
  23.    _parent.bez_ship.t = 0;
  24.    _parent.bez_ship.current_time = 0;
  25.    _parent.bez_ship.active = false;
  26.    _parent.player.gotoAndStop(1);
  27. }
  28.